Skip to content

Conversation

jpinsonneau
Copy link
Contributor

@jpinsonneau jpinsonneau commented Sep 6, 2024

Description

Allow filtering on n/a by searching on strict value "" in the text input.

image
image
image
image

Dependencies

n/a

Checklist

If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.

  • Is this PR backed with a JIRA ticket? If so, make sure it is written as a title prefix (in general, PRs affecting the NetObserv/Network Observability product should be backed with a JIRA ticket - especially if they bring user facing changes).
  • Does this PR require product documentation?
    • If so, make sure the JIRA epic is labelled with "documentation" and provides a description relevant for doc writers, such as use cases or scenarios. Any required step to activate or configure the feature should be documented there, such as new CRD knobs.
  • Does this PR require a product release notes entry?
    • If so, fill in "Release Note Text" in the JIRA.
  • Is there anything else the QE team should know before testing? E.g: configuration changes, environment setup, etc.
    • If so, make sure it is described in the JIRA ticket.
  • QE requirements (check 1 from the list):
    • Standard QE validation, with pre-merge tests unless stated otherwise.
    • Regression tests only (e.g. refactoring with no user-facing change).
    • No QE (e.g. trivial change with high reviewer's confidence, or per agreement with the QE team).

Copy link

codecov bot commented Sep 6, 2024

Codecov Report

Attention: Patch coverage is 39.13043% with 14 lines in your changes missing coverage. Please review.

Project coverage is 56.27%. Comparing base (be3303e) to head (4664365).
Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
web/src/components/toolbar/filters/text-filter.tsx 33.33% 4 Missing and 2 partials ⚠️
web/src/utils/filter-definitions.ts 16.66% 4 Missing and 1 partial ⚠️
...components/toolbar/filters/autocomplete-filter.tsx 60.00% 2 Missing ⚠️
web/src/model/filters.ts 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #590      +/-   ##
==========================================
- Coverage   56.29%   56.27%   -0.02%     
==========================================
  Files         190      190              
  Lines        9289     9304      +15     
  Branches     1197     1201       +4     
==========================================
+ Hits         5229     5236       +7     
- Misses       3691     3698       +7     
- Partials      369      370       +1     
Flag Coverage Δ
uitests 57.79% <39.13%> (-0.03%) ⬇️
unittests 52.06% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
web/src/components/toolbar/filters-toolbar.tsx 68.65% <100.00%> (+1.49%) ⬆️
web/src/model/filters.ts 75.86% <50.00%> (+0.42%) ⬆️
...components/toolbar/filters/autocomplete-filter.tsx 63.54% <60.00%> (-0.59%) ⬇️
web/src/utils/filter-definitions.ts 73.37% <16.66%> (-0.73%) ⬇️
web/src/components/toolbar/filters/text-filter.tsx 69.76% <33.33%> (-8.02%) ⬇️

... and 1 file with indirect coverage changes

@jotak jotak added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Sep 9, 2024
Copy link

github-actions bot commented Sep 9, 2024

New image:
quay.io/netobserv/network-observability-console-plugin:1570e7b

It will expire after two weeks.

To deploy this build, run from the operator repo, assuming the operator is running:

USER=netobserv VERSION=1570e7b make set-plugin-image


// Convenience string to filter by undefined field values
export const undefinedValue = '""';
// Unique double are allowed while typing but invalid
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jpinsonneau could we use just an empty string as undefined value? I feel it would make more sense, at least for non-string values, than using "". wdyt?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(If we stick to using "" IMO we should mention it in the help tips because it's sounds less intuitive)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that should do the trick @jotak
14617a0

@github-actions github-actions bot removed the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Sep 9, 2024
@jotak jotak added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Sep 10, 2024
Copy link

New image:
quay.io/netobserv/network-observability-console-plugin:f127614

It will expire after two weeks.

To deploy this build, run from the operator repo, assuming the operator is running:

USER=netobserv VERSION=f127614 make set-plugin-image

@jotak
Copy link
Member

jotak commented Sep 10, 2024

👌
/lgtm

@Amoghrd
Copy link
Member

Amoghrd commented Sep 10, 2024

@jpinsonneau I now see all filters now accept "" to filter on n/a. So that looks good.
But I tried greater than with n/a to see how it behaves, it shows error; but maybe we can handle the error better? wdyt?
Screenshot 2024-09-10 at 11 42 17 AM

@jpinsonneau
Copy link
Contributor Author

@jpinsonneau I now see all filters now accept "" to filter on n/a. So that looks good. But I tried greater than with n/a to see how it behaves, it shows error; but maybe we can handle the error better? wdyt? Screenshot 2024-09-10 at 11 42 17 AM

doh

@openshift-ci openshift-ci bot removed the lgtm label Sep 10, 2024
Copy link

openshift-ci bot commented Sep 10, 2024

New changes are detected. LGTM label has been removed.

@github-actions github-actions bot removed the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Sep 10, 2024
@jpinsonneau
Copy link
Contributor Author

jpinsonneau commented Sep 10, 2024

@Amoghrd that will fix the issue you found:
4664365

Screenshot from 2024-09-10 18-05-55
Screenshot from 2024-09-10 18-06-05

Thank you ! That's a good catch !

@jpinsonneau jpinsonneau added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Sep 10, 2024
Copy link

New image:
quay.io/netobserv/network-observability-console-plugin:c64e024

It will expire after two weeks.

To deploy this build, run from the operator repo, assuming the operator is running:

USER=netobserv VERSION=c64e024 make set-plugin-image

@Amoghrd
Copy link
Member

Amoghrd commented Sep 10, 2024

That helped. Works as expected!
/label qe-approved

@openshift-ci openshift-ci bot added the qe-approved QE has approved this pull request label Sep 10, 2024
@jpinsonneau
Copy link
Contributor Author

Awesome, thanks @Amoghrd !

Copy link

openshift-ci bot commented Sep 11, 2024

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 96729c2 into netobserv:main Sep 11, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. qe-approved QE has approved this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants